package com.venutech.gongan.service;

import com.venutech.gongan.entity.TbWorkOrder;

import java.util.List;

/**
 * 巡检Service接口
 * 
 * @author linxb
 * @date 2023-09-18
 */
public interface ITbWorkOrderService
{
    /**
     * 查询巡检
     * 
     * @param wkId 巡检主键
     * @return 巡检
     */
    public TbWorkOrder selectTbWorkOrderByWkId(Long wkId);

    /**
     * 查询巡检列表
     * 
     * @param TbWorkOrder 巡检
     * @return 巡检集合
     */
    public List<TbWorkOrder> selectTbWorkOrderList(TbWorkOrder tbWorkOrder);

    /**
     * 新增巡检
     * 
     * @param TbWorkOrder 巡检
     * @return 结果
     */
    public int insertTbWorkOrder(TbWorkOrder tbWorkOrder);

    /**
     * 修改巡检
     * 
     * @param TbWorkOrder 巡检
     * @return 结果
     */
    public int updateTbWorkOrder(TbWorkOrder tbWorkOrder);

    /**
     * 批量删除巡检
     * 
     * @param wkIds 需要删除的巡检主键集合
     * @return 结果
     */
    public int deleteTbWorkOrderByWkIds(String wkIds);

    /**
     * 删除巡检信息
     * 
     * @param wkId 巡检主键
     * @return 结果
     */
    public int deleteTbWorkOrderByWkId(Long wkId);

    int approveTbWorkOrder(TbWorkOrder tbWorkOrder);

    int approveFaultOrder(TbWorkOrder tbWorkOrder);
}
